package com.kx.core.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;


/**
 * 过滤 userservlet
 * @author     Kangx.li 1703054
 * @version    V1 2018年11月22日
 * @since      Java
 */
@WebFilter("/servlet/user.do")
public class UserFilter implements Filter {

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
	    throws IOException, ServletException {
	System.out.println("do filter"+request.getRemoteHost());
	System.out.println("123");
	chain.doFilter(request, response);
    }

}

